package com.achobeta.recruitment.dao.student;

import com.achobeta.recruitment.model.StudentInfo;
import com.achobeta.recruitment.model.StudentInfoWithBLOBs;
import com.achobeta.recruitment.model.vo.StudentInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentInfoMapper {
    int insert(StudentInfoWithBLOBs row);

    int insertSelective(StudentInfoWithBLOBs row);

    StudentInfoWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StudentInfoWithBLOBs row);

    int updateByPrimaryKeyWithBLOBs(StudentInfoWithBLOBs row);

    int updateByPrimaryKey(StudentInfo row);

    StudentInfoWithBLOBs selectStudentInfoByOpenid(@Param("openid") String openid, @Param("state") Byte state);

    /**
     * 根据openid，获取超详细的用户相关信息
     * @param openid
     * @return
     */
    StudentInfoVO selectDetailStudentInfoByOpenid(@Param("openid") String openid);
}